#include "ICommand.h"
#include "MoveMouse.h"
#include "Input.h"
#include "Command.h"

ICommand* ICommand::GetCommand(Command cmd)
{
	byte opcode = cmd.GetOpCode();
	byte* bvars = cmd.GetParams();
	int* vars;

	switch(opcode)
	{
	case MOVE_MOUSE:
			vars = (int*) bvars;
			return new MoveMouse(vars[0], vars[1]);
	default:
		break;
	}
	return 0;
}